package com.example.shkjdemo.broadcastreceiver

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log

class MyReceiver : BroadcastReceiver() {
    private val TAG = "MyReceiver..."
    private val ACTION_SHUTDOWN = "android.intent.action.ACTION_SHUTDOWN"
    override fun onReceive(context: Context?, intent: Intent?) {
        if (intent?.action.equals(ACTION_SHUTDOWN)) {
            Log.d(TAG, "onReceive...关机广播....")
        }
    }
}
